/**   
* @Title: DynamicDataSource.java
* @Package org.xaoyaoyao.cloud.dynamic.annotation
* @Description: TODO
* @author xaoyaoyao
* @date Jul 3, 2019 3:37:20 PM
* @version V1.0   
*/
package org.xaoyaoyao.cloud.dynamic.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName: DynamicDataSource
 * @Description: 切换数据注解 可以用于类或者方法级别 方法级别优先级 > 类级别
 * @author xaoyaoyao
 * @date Jul 3, 2019 3:37:20 PM
 * 
 */
@Target({ ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DynamicDataSource {

	String value() default "master"; // 该值即key值
}
